1024-Bit EEPROM iButton
inverted CRC-16 of the command, address (actual
address sent), and data at the end of the Write
Scratchpad command sequence. Knowing this CRC
value, the master can compare it to the value it has cal-
culated to decide if the communication was successful
and proceed to the Copy Scratchpad command. If the
master could not receive the CRC-16, it should send
the Read Scratchpad command to verify data integrity.
As a preamble to the scratchpad data, the DS1972
repeats the target address TA1 and TA2 and sends the
contents of the E/S register. If the PF flag is set, data
did not arrive correctly in the scratchpad, or there was
a loss of power since data was last written to the
scratchpad. The master does not need to continue
reading; it can start a new trial to write data to the
scratchpad. Similarly, a set AA flag together with a
cleared PF flag indicate that the device did not recog-
nize the Write Scratchpad command.
If everything went correctly, both flags are cleared.
Now the master can continue reading and verifying
every data byte. After the master has verified the data,
it can send the Copy Scratchpad command, for exam-
ple. This command must be followed exactly by the
data of the three address registers: TA1, TA2, and E/S.
The master should obtain the contents of these regis-
ters by reading the scratchpad.
Memory Function Commands
The Memory Function Flowchart (Figure 7) describes
the protocols necessary for accessing the memory of
the DS1972. An example on how to use these functions
to write to and read from the device is in the Memory
Function Example section. The communication
between the master and the DS1972 takes place either
at standard speed (default, OD = 0) or at overdrive
speed (OD = 1). If not explicitly set into overdrive
mode, the DS1972 assumes standard speed.
Write Scratchpad [0Fh]
The Write Scratchpad command applies to the data
memory and the writable addresses in the register
page. For the scratchpad data to be valid for copying
to the array, the user must perform a Write Scratchpad
command of 8 bytes starting at a valid row boundary.
The Write Scratchpad command accepts invalid
addresses and partial rows, but subsequent Copy
Scratchpad commands are blocked.
After issuing the Write Scratchpad command, the mas-
ter must first provide the 2-byte target address, fol-
lowed by the data to be written to the scratchpad. The
data is written to the scratchpad starting at the byte off-
set of T[2:0]. The E/S bits E[2:0] are loaded with the
starting byte offset and increment with each subse-
quent byte. Effectively, E[2:0] is the byte offset of the
last full byte written to the scratchpad. Only full data
bytes are accepted.
When executing the Write Scratchpad command, the
CRC generator inside the DS1972 (Figure 13) calcu-
lates a CRC of the entire data stream, starting at the
command code and ending at the last data byte as
sent by the master. This CRC is generated using the
CRC-16 polynomial by first clearing the CRC generator
and then shifting in the command code (0Fh) of the
Write Scratchpad command, the target addresses (TA1
and TA2), and all the data bytes. Note that the CRC-16
calculation is performed with the actual TA1 and TA2
and data sent by the master. The master can end the
Write Scratchpad command at any time. However, if
the end of the scratchpad is reached (E[2:0] = 111b),
the master can send 16 read time slots and receive the
CRC generated by the DS1972.
If a Write Scratchpad command is attempted to a write-
protected location, the scratchpad is loaded with the
data already existing in memory rather than the data
transmitted. Similarly, if the target address page is in
EPROM mode, the scratchpad is loaded with the bit-
wise logical AND of the transmitted data and data
already existing in memory.
Read Scratchpad [AAh]
The Read Scratchpad command allows verifying the
target address and the integrity of the scratchpad data.
After issuing the command code, the master begins
reading. The first 2 bytes are the target address. The
next byte is the ending offset/data status byte (E/S) fol-
lowed by the scratchpad data, which may be different
from what the master originally sent. This is of particular
importance if the target address is within the register
page or a page in either write-protection mode or
EPROM mode. See the Write Scratchpad [0Fh] section
for details. The master should read through the scratch-
pad (E[2:0] - T[2:0] + 1 bytes), after which it receives
the inverted CRC based on data as it was sent by the
DS1972. If the master continues reading after the CRC,
all data is logic 1.
_______________________________________________________________________________________
9
相关PDF资料
DS1973-F3+ IBUTTON EEPROM 4KBit F3
DS1977-F5# IBUTTON EEPROM 32KBit F5
DS1982-F5+ IBUTTON 1KBit ADD-ONLY F5
DS1985-F3+ IBUTTON 16KBit ADD-ONLY F3
DS1990A-F3+ IC IBUTTON SERIAL NUMBER F3
DS1990R-F5# IBUTTON SERIAL NUMBER F5
DS1993L-F5+ IBUTTON MEMORY 4KBit F5
DS1995L-F5+ IBUTTON MEMORY 16KBit F5
相关代理商/技术参数
DS1972-F5 制造商:MAXIM 制造商全称:Maxim Integrated Products 功能描述:1024-Bit EEPROM iButton
DS1972-F5# 功能描述:iButton RoHS:否 存储类型:SRAM 存储容量:512 B 组织: 工作电源电压:3 V to 5.25 V 接口类型:1-Wire 最大工作温度:+ 85 C 尺寸:17.35 mm x 5.89 mm 封装 / 箱体:F5 MicroCan 制造商:Maxim Integrated
DS1972-F5+ 功能描述:iButton 1024-Bit EEPROM iButton RoHS:否 存储类型:SRAM 存储容量:512 B 组织: 工作电源电压:3 V to 5.25 V 接口类型:1-Wire 最大工作温度:+ 85 C 尺寸:17.35 mm x 5.89 mm 封装 / 箱体:F5 MicroCan 制造商:Maxim Integrated
DS1973 制造商:DALLAS 制造商全称:Dallas Semiconductor 功能描述:4-kbit EEPROM iButton
DS1973+F3 制造商:Maxim Integrated Products 功能描述:EEPROM SERL-1WIRE 4KBIT 16PAGES X 256 3.3V/5V F3 CA - Rail/Tube
DS1973+F5 制造商:Maxim Integrated Products 功能描述:IC MEMORY I BUTTON 1973
DS1973-F3 功能描述:iButton RoHS:否 存储类型:SRAM 存储容量:512 B 组织: 工作电源电压:3 V to 5.25 V 接口类型:1-Wire 最大工作温度:+ 85 C 尺寸:17.35 mm x 5.89 mm 封装 / 箱体:F5 MicroCan 制造商:Maxim Integrated
DS1973-F3# 功能描述:iButton RoHS:否 存储类型:SRAM 存储容量:512 B 组织: 工作电源电压:3 V to 5.25 V 接口类型:1-Wire 最大工作温度:+ 85 C 尺寸:17.35 mm x 5.89 mm 封装 / 箱体:F5 MicroCan 制造商:Maxim Integrated